import request from '@/utils/request'

// 查询节目列表
export function listHgitems(query) {
  return request({
    url: '/iot/hgitems/list',
    method: 'get',
    params: query
  })
}

// 查询节目详细
export function getHgitems(id) {
  return request({
    url: '/iot/hgitems/' + id,
    method: 'get'
  })
}

// 新增节目
export function addHgitems(data) {
  return request({
    url: '/iot/hgitems',
    method: 'post',
    data: data
  })
}

// 修改节目
export function updateHgitems(data) {
  return request({
    url: '/iot/hgitems',
    method: 'put',
    data: data
  })
}

// 删除节目
export function delHgitems(id) {
  return request({
    url: '/iot/hgitems/' + id,
    method: 'delete'
  })
}
